package com.jinxin.platform.cddatadict.controller;

import com.jinxin.platform.base.api.annotation.APCOSApi;
import com.jinxin.platform.base.common.pojo.JsonResult;
import com.jinxin.platform.cddatadict.rpc.DictRpcService;
import com.jinxin.platform.cddatadict.utils.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author 那个男人
 * @Date 2023/9/22 10:36
 * @Version 1.0
 */
@APCOSApi(value = "测试接口", developers = {"那个男人"}, description = "测试接口")
@RestController
public class TestController {
    @Autowired
    private DictRpcService dictRpcService;
    @GetMapping("/cddatadict/testrpc")
    public JsonResult testrpc(String dictType) {
        Map param = new HashMap<>();
        param.put("dictType",dictType);
        return dictRpcService.selectDictitemsByType(param);
    }
}
